/*    */ package change.org.eclipse.swt.browser;
/*    */ 
/*    */ import org.eclipse.swt.graphics.Rectangle;
/*    */ import org.eclipse.swt.widgets.Composite;
/*    */ import org.eclipse.swt.widgets.Display;
/*    */ import org.eclipse.swt.widgets.Event;
/*    */ import org.mozilla.interfaces.nsIBaseWindow;
/*    */ import org.mozilla.interfaces.nsIWebBrowser;
/*    */ 
/*    */ public class MozillaBrowser extends AbstractMozillaBrowser
/*    */ {
/*    */   public MozillaBrowser(Composite parent, int style)
/*    */   {
/* 12 */     super(parent, style);
/*    */   }
/*    */ 
/*    */   protected int getHandle() {
/* 16 */     return this.handle;
/*    */   }
/*    */ 
/*    */   protected void onShow(Event event) {
/*    */   }
/*    */ 
/*    */   static MozillaBrowser findBrowser(long handle) {
/* 23 */     Display display = Display.getCurrent();
/* 24 */     return ((MozillaBrowser)display.findWidget((int)handle));
/*    */   }
/*    */ 
/*    */   void onResize() {
/* 28 */     Rectangle rect = getClientArea();
/* 29 */     nsIBaseWindow baseWindow = (nsIBaseWindow)this.webBrowser.queryInterface("{046bc8a0-8015-11d3-af70-00a024ffc08c}");
/* 30 */     baseWindow.setPositionAndSize(rect.x, rect.y, rect.width, rect.height, true);
/*    */   }
/*    */ }
